home *** CD-ROM | disk | FTP | other *** search
- MTYPE.EXE is a small program to test for the presence of an EGA/VGA adapter and
- also tells whether it is color/monochrome.
-
- The easiest test for the presence of an EGA is to check the C000:0000h ROM
- latch, but this is not available on the PS/2 and should be avoided.
-
- Better methods are to use EGA/VGA only functions. BIOS call 1ah returns the
- active adapter type. If BIOS call 1ah is not supported, BX will remain 0.
-
- If 1ah is not supported, use function call 12h (unique to EGA) to get
- information about the EGA. BL must be set to 10h to return EGA information.
- If an EGA is installed, a value between0 and 3 will represent memory, otherwise
- a 10h will be returned.
-